﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WMSSyncData.Model
{
    /// <summary>
    /// 销售订单发货计划中间表
    /// </summary>
    [Table(TableName = "wms_M_OutStockRMDetails")]
    public class WMS_M_OutStockRMDetails
    {
        public string Guid { get; set; }
        /// <summary>
        /// 单据号
        /// </summary>
        public string BillNo { get; set; }
        /// <summary>
        /// ERP相关单号
        /// </summary>
        public string RelatedBill { get; set; }
        /// <summary>
        /// 料号
        /// </summary>
        public string PartNumber { get; set; }
        /// <summary>
        /// 行号
        /// </summary>
        public int RowNo { get; set; }
        /// <summary>
        /// 顺序号
        /// </summary>
        public int OrderNo { get; set; }
        /// <summary>
        /// 箱号
        /// </summary>
        public string BoxNo { get; set; }
        /// <summary>
        /// 版本号
        /// </summary>
        public string Version { get; set; }
        /// <summary>
        /// DateCode
        /// </summary>
        public string DateCode { get; set; }
        /// <summary>
        /// 供应商批号
        /// </summary>
        public string SupLotNo { get; set; }
        /// <summary>
        /// 计划数
        /// </summary>
        public decimal PlanQty { get; set; }
        /// <summary>
        /// 出货数
        /// </summary>
        public decimal RealQty { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public string Status { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string Creator { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string Updator { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 扩展1
        /// </summary>
        public string Ext1 { get; set; }
        /// <summary>
        /// 扩展2
        /// </summary>
        public string Ext2 { get; set; }
        /// <summary>
        /// 扩展3
        /// </summary>
        public string Ext3 { get; set; }
        /// <summary>
        /// 仓库
        /// </summary>
        public string Storage_SN { get; set; }
        /// <summary>
        /// 库区
        /// </summary>
        public string Area_SN { get; set; }
        /// <summary>
        /// 库位
        /// </summary>
        public string Location_SN { get; set; }
        /// <summary>
        /// 供应商
        /// </summary>
        public string CustomerSN { get; set; }

        /// <summary>
        /// 有效期
        /// </summary>
        public DateTime? ExpiryDate { get; set; }
        /// <summary>
        /// 唯一码
        /// </summary>
        public string UniqueCode { get; set; }

        public int Data_Status { get; set; }
        public DateTime? Data_WriteTime { get; set; }
        public DateTime? Data_ReadTime { get; set; }
    }
}
